package com.work.demo.entity;

public class ResultResponce<T> {
    private T data;
    //状态
    private Integer sid;
    //信息说明
    private String message;
    //是否成功
    private boolean isOk;

    //构造方法
    public ResultResponce() {
        data = null;
        sid = 400;
        message = "发生未知错误";
        isOk = false;
    }

    public ResultResponce(T data, Integer sid, String message, boolean isOk) {
        this.data = data;
        this.sid = sid;
        this.message = message;
        this.isOk = isOk;
    }

    public void setData(T data) {
        this.data = data;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setOk(boolean ok) {
        isOk = ok;
    }

    public T getData() {
        return data;
    }

    public Integer getSid() {
        return sid;
    }

    public String getMessage() {
        return message;
    }

    public boolean isOk() {
        return isOk;
    }
}
